// 导出属于employees的路由规则
import Layout from '@/layout/index.vue'

export default {
  path: '/employees',
  name: 'employees',
  component: Layout,
  children: [
    {
      path: '',
      name: 'employees',
      component: () => { return import ('@/views/employees/index.vue') },
      meta: {
        title: '员工管理',
        icon: 'people'
      }
    },
    {
      path: 'detail/:id?',
      component: () => import ('@/views/employees/detail.vue'),
      hidden: true,
      props: true // 传参,用这个接收
    },
    {
      path: 'print/:id?',
      component: () => import ('@/views/employees/print.vue'),
      hidden: true,
      props: true // 传参,用这个接收
    }
  ]
}
// 当你的访问地址 是 /employees的时候 layout组件会显示 此时 你的二级路由的默认组件  也会显示
